package com.example.health_hjk;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;

import androidx.appcompat.app.AppCompatActivity;

public class exercise_food1 extends AppCompatActivity {
    ImageView ex_back1;
    Button ex_vi;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.exercise_food1);

        ex_back1 = findViewById(R.id.ex_back1);
        ex_vi = findViewById(R.id.ex_vi);
        //设置返回
        ex_back1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        ex_vi.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent =new Intent(exercise_food1.this,ex_video.class);
                //启动
                startActivity(intent);
            }
        });
    }
}